// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// ./App  会选择对应的文件，如App.vue或App.js

import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from './store'
import 'babel-polyfill'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper /* { default global options } */)

/* eslint-disable no-new */ /* 路由就是根据网址的不同，返回不同的内容给用户 */
new Vue({
  el: '#app',
  router, // 实际上是router：router
  store,
  components: { App }, // 使用了es6语法，实际是 App：App
  template: '<App/>'
})
